package com.whnk.quartz.task;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.whnk.quartz.service.IWdJobService;

/**
 * 定时任务调度
 * 
 * @author whnk
 */
@Component("wdInfoTask")
public class WdInfoTask
{
	@Autowired
	private IWdJobService wdJobService;
	
    @SuppressWarnings("deprecation")
	public void wdInfoTask()
    {
    	wdJobService.createWorkDt(new Date().getYear()+1);
    }
}
